package com.grapecity.circlefriend;

import android.app.Application;
import android.os.Handler;
import android.os.Message;
import android.util.Log;

public class CircleApplication extends Application {
	public static final int INIT_OK = 0;
	public static final int INIT_FAILED = 1;

	@Override
	public void onCreate() {
		super.onCreate();
	}

	public void initApplication(Handler handler) {
		Log.d("Application", "initApplication");
		try {
			Thread.sleep(1000);
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

		Log.d("Application", "initApplication OK");

		Message msg = new Message();
		msg.what = INIT_OK;
		handler.dispatchMessage(msg);
	}
}
